<?php

namespace Admin\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Comments
 *
 * @ORM\Table(name="comments", indexes={@ORM\Index(name="IDX_5F9E962AD7077436", columns={"lng_id"}), @ORM\Index(name="IDX_5F9E962AC69D3FB", columns={"usr_id"}), @ORM\Index(name="IDX_5F9E962A4A863625", columns={"artc_id"})})
 * @ORM\Entity
 */
class Comments
{
    /**
     * @var integer
     *
     * @ORM\Column(name="com_id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $comId;

    /**
     * @var string
     *
     * @ORM\Column(name="com_title", type="string", length=100, nullable=false)
     */
    private $comTitle;

    /**
     * @var string
     *
     * @ORM\Column(name="com_text", type="text", nullable=true)
     */
    private $comText;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="com_created", type="datetime", nullable=true)
     */
    private $comCreated;

    /**
     * @var \Admin\Entity\Articles
     *
     * @ORM\ManyToOne(targetEntity="Admin\Entity\Articles")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="artc_id", referencedColumnName="artc_id")
     * })
     */
    private $artc;

    /**
     * @var \Admin\Entity\Users
     *
     * @ORM\ManyToOne(targetEntity="Admin\Entity\Users")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="usr_id", referencedColumnName="usr_id")
     * })
     */
    private $usr;

    /**
     * @var \Admin\Entity\Languages
     *
     * @ORM\ManyToOne(targetEntity="Admin\Entity\Languages")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="lng_id", referencedColumnName="lng_id")
     * })
     */
    private $lng;



    /**
     * Get comId
     *
     * @return integer 
     */
    public function getComId()
    {
        return $this->comId;
    }

    /**
     * Set comTitle
     *
     * @param string $comTitle
     * @return Comments
     */
    public function setComTitle($comTitle)
    {
        $this->comTitle = $comTitle;

        return $this;
    }

    /**
     * Get comTitle
     *
     * @return string 
     */
    public function getComTitle()
    {
        return $this->comTitle;
    }

    /**
     * Set comText
     *
     * @param string $comText
     * @return Comments
     */
    public function setComText($comText)
    {
        $this->comText = $comText;

        return $this;
    }

    /**
     * Get comText
     *
     * @return string 
     */
    public function getComText()
    {
        return $this->comText;
    }

    /**
     * Set comCreated
     *
     * @param \DateTime $comCreated
     * @return Comments
     */
    public function setComCreated($comCreated)
    {
        $this->comCreated = $comCreated;

        return $this;
    }

    /**
     * Get comCreated
     *
     * @return \DateTime 
     */
    public function getComCreated()
    {
        return $this->comCreated;
    }

    /**
     * Set artc
     *
     * @param \Admin\Entity\Articles $artc
     * @return Comments
     */
    public function setArtc(\Admin\Entity\Articles $artc = null)
    {
        $this->artc = $artc;

        return $this;
    }

    /**
     * Get artc
     *
     * @return \Admin\Entity\Articles 
     */
    public function getArtc()
    {
        return $this->artc;
    }

    /**
     * Set usr
     *
     * @param \Admin\Entity\Users $usr
     * @return Comments
     */
    public function setUsr(\Admin\Entity\Users $usr = null)
    {
        $this->usr = $usr;

        return $this;
    }

    /**
     * Get usr
     *
     * @return \Admin\Entity\Users 
     */
    public function getUsr()
    {
        return $this->usr;
    }

    /**
     * Set lng
     *
     * @param \Admin\Entity\Languages $lng
     * @return Comments
     */
    public function setLng(\Admin\Entity\Languages $lng = null)
    {
        $this->lng = $lng;

        return $this;
    }

    /**
     * Get lng
     *
     * @return \Admin\Entity\Languages 
     */
    public function getLng()
    {
        return $this->lng;
    }
}
